package com.bezdelnick.forum.dao;

import com.bezdelnick.forum.domain.Question;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 18.07.12
 * Time: 12:18
 * To change this template use File | Settings | File Templates.
 */
public interface IQuestionDao {
    List<Question> loadQuestions();
    Question getQuestionById(long id);
    List<Question> loadQuestionsByTypeId(long id);
    List<Question> loadQuestionsBySubtypeId(long id);
    boolean insertQuestion(Question question);
    boolean updateQuestion(Question question);
    boolean deleteQuestion(long id);
}
